package com.ruoyi.project.system.commodity.servuce;

import com.ruoyi.project.system.commodity.domain.Systematics;
import com.ruoyi.project.system.commodity.domain.SystematicsFirst;
import com.ruoyi.project.system.commodity.mapper.SystematicsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SystematicsServiceImp implements SystematicsService{
    @Autowired
    SystematicsMapper systematicsMapper;
    @Override
    public void insertSystematics(Systematics systematics) {
        systematicsMapper.insertSystematics(systematics);
    }


    @Override
    public List<Systematics> querySystematics() {
        return systematicsMapper.querySystematics();
    }

    @Override
    public void deleteSystematicsById(Systematics systematics) {
        systematicsMapper.deleteSystematicsById(systematics);
    }

    @Override
    public Systematics querySystematicsById(int id) {
        return systematicsMapper.querySystematicsById(id);
    }

    @Override
    public List<SystematicsFirst> queryFirstSystematics() {
        return systematicsMapper.queryFirstSystematics();
    }

    @Override
    public List<Systematics> querySysChildById(int id) {
        return systematicsMapper.querySysChildById(id);
    }

    @Override
    public List<Systematics> queryFirstSys(int start, int pageSize) {
        return systematicsMapper.queryFirstSys(start,pageSize);
    }

    @Override
    public void updateStatusOpenById(Systematics systematics) {
        systematicsMapper.updateStatusOpenById(systematics);
    }

    @Override
    public void updateStatusCloseById(Systematics systematics) {
        systematicsMapper.updateStatusCloseById(systematics);
    }

    @Override
    public int querySysCount() {
        return systematicsMapper.querySysCount();
    }

    @Override
    public void updateSystematics(Systematics systematics) {
        systematicsMapper.updateSystematics(systematics);
    }
}
